const path=require('path')
const HtmlWebpackPlugin=require('html-webpack-plugin')
const webpack=require('webpack')
module.exports={
    entry:'./src/app.js',
    output:{
        filename:'bundle.js',
        path:path.resolve(__dirname,'dist'),
    },
    plugins:[new HtmlWebpackPlugin()],
    module:{
        rules:[
            {
                test:/\.css$/,
                use:[{loader:'css-loader'},{loader:'style-loader'}]
            },
            {
                test:/.(js)$/,
                use:'babel-loader'
            }
        ]
    },
    mode:'development'
}